package com.example.xiaomi.Model.Service;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet("/position")
public class position extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/plain;charset=utf-8");
        String phone_Number = req.getParameter("phone_Number");
        PrintWriter out = resp.getWriter();
        String address = com.example.xiaomi.Model.Oop.position.getCarrier(phone_Number,"+86");
        out.println(address);
    }
}
